import sqlalchemy as sa
from hellopylons.model import meta

tbluser = sa.Table('tbluser', meta.metadata,
    sa.Column('PK_UserID', sa.types.Integer, primary_key=True),
    sa.Column('UserName', sa.types.String, nullable=True),
    sa.Column('Password', sa.types.String, nullable=True),
    sa.Column('FK_GroupID', sa.types.Integer),
    sa.Column('FK_UserTypeID', sa.types.Integer, sa.ForeignKey('tblusertype.PK_UserTpyeID')),
    sa.Column('IsOnline', sa.types.Boolean, nullable=True),
    sa.Column('SessionID', sa.types.String, nullable=True),
    sa.Column('LanguageType', sa.types.String, nullable=True),
    sa.Column('LastLoginTime', sa.types.DateTime, nullable=True),
    sa.Column('CreateTime', sa.types.DateTime, nullable=True)
    )